package ch.elca.training.dao.utils;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.commons.dbcp.BasicDataSource;

public class HsqlFileBasicDataSource extends BasicDataSource {

	@Override
	public Connection getConnection() throws SQLException {
		Connection result = super.getConnection();
		result.prepareCall("set write_delay 0").execute();
		return result;
	}
}
